package com.situ.blog.service;

import com.situ.blog.pojo.User;
import com.situ.blog.util.JSONResult;
import com.situ.blog.util.LayUITableJSONResult;

import java.util.List;

public interface IUserService {
    List<User> selectAll();

    LayUITableJSONResult selectByPage(Integer page, Integer limit);

    JSONResult add(User user);

    JSONResult deleteById(Integer id);

    User login(String name, String password);
}
